package com.btb.adapter.config;

import java.util.concurrent.TimeUnit;

import org.web3j.protocol.http.HttpService;

import okhttp3.OkHttpClient;

public class HttpSerivceEx extends HttpService {
	
	public HttpSerivceEx(String url) {
		super(url, new OkHttpClient.Builder()
				.connectTimeout(20, TimeUnit.SECONDS) //连接超时时间
				.readTimeout(40, TimeUnit.SECONDS) //读取超时时间
				.build());
	}
}
